<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LOGIN</title>
<link type="text/css" rel="stylesheet" href="css/gobal.css" />
<link type="text/css" rel="stylesheet" href="css/lar.css" />
<script type="text/javascript" src="js/jquery1.7.2.js"></script>
</head>
<body>
<div id="container">
<div id="header">
	<div class="soh1"><img src="css/images/header.gif" /></div>
	<div class="soh2"><div class="ssoh21"><p>用户登录</p></div><div class="ssoh22"><a href="index.jsp">返回主页</a></div></div>
</div>
<div id="main">
	<div class="table">
	   	<form id="form" action="/JspCart/userServlet?opt=login" method="post" >
	       	<div class="trh"><div class="td1"></div><div class="td2"><label id="msg" style="color: #F09">${msg }</label></div></div>
	 		<div class="tr"><div class="td1"><p>*账号</p></div><div class="td2"><input id="name" type="text" name="name" /></div></div>
	     	<div class="tr"><div class="td1"><p>*密码</p></div><div class="td2"><input id="password" type="password" name="password" /></div></div>
	     	<div class="tr"><div class="td1"><p>*验证码</p></div><div class="td2"><input id="checkcode" type="text" name="checkcode" size="8"/><img id="code" src="/JspCart/createCode"/ title="点击刷新" /></div></div>
	     	<div class="trf"><div class="td1"><input type="reset" style="background-image:url(css/images/reset.gif);height:19px;width:40px;" value="" title="reset"/></div>
	     	<div class="td2"><input type="submit" style="background-image:url(css/images/llogin.gif);height:19px;width:60px; " value="" title="login" /></div></div>
	    </form>
	</div>
</div>
<jsp:include page="/footer.jsp" />
</div>
<script type="text/javascript">
$(function(){
	$("#form").submit(function(){
		var name = $("#name").val();
		var password = $("#password").val();
		var vcode = $("#vcode").val();
		if(name==""||password==""||vcode==""){
			$("#msg").html("有*号的必须填写...");
			return false;
		}else{
			return true;
		}
	});
});
</script>
</body>
</html>
